package com.xuecheng.content.agent;

import com.xuecheng.api.system.model.dto.CourseCategoryDTO;
import com.xuecheng.common.constant.XcFeignServiceNameList;
import com.xuecheng.common.domain.response.RestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(XcFeignServiceNameList.XC_SYSTEM_SERVICE)
public interface SystemApiAgent {

    @GetMapping("/system/l/course-category/{id}")
    RestResponse<CourseCategoryDTO> get(@PathVariable String id);

}
